import request from '@/utils/request'

export function getTradeList (params) {
  return request({
    url: '/basic-api/zd/trade/getTradeList',
    method: 'get',
    params
  })
}
export function getTradeListByCustId (custId) {
  return request({
    url: '/basic-api/zd/trade/getTradeListByCustId/' + custId,
    method: 'get'
  })
}
export function getTradeById (id) {
  return request({
    url: '/basic-api/zd/trade/getTradeById/' + id,
    method: 'get',
  })
}

export function addTrade (data) {
  return request({
    url: '/basic-api/zd/trade/add',
    method: 'post',
    data
  })
}

export function updateTrade (data) {
  return request({
    url: '/basic-api/zd/trade/update',
    method: 'post',
    data
  })
}

export function removeTrade (id) {
  return request({
    url: '/basic-api/zd/trade/remove/' + id,
    method: 'post',
  })
}

